<template>
    <div class="mian">
        <!-- left -->
        <div class="mian-left">
            <!-- 订单 -->
            <div class="mian-let-sum">
                <div class="sum-1 sum-flex">
                    <!-- left-icon -->
                    <div class="left-icon">
                        <i class="el-icon-s-cooperation"></i>
                    </div>
                    <!-- right -->
                    <div class="sum-right">
                        <div>资源总数</div>
                        <div>811987</div>
                    </div>
                </div>
                <div class="sum-2 sum-flex">
                    <!-- left-icon -->
                    <div class="left-icon">
                        <i class="el-icon-platform-eleme"></i>
                    </div>
                    <!-- right -->
                    <div class="sum-right">
                        <div>客户总数</div>
                        <div>811987</div>
                    </div>
                </div>
                <div class="sum-3">
                    <!-- left -->
                    <div class="sum-3-left sum-flex">
                        <!-- left-icon -->
                        <div class="left-icon">
                            <i class="el-icon-platform-eleme"></i>
                        </div>
                        <!-- right -->
                        <div class="sum-right">
                            <div>客户总数</div>
                            <div>8119</div>
                        </div>
                    </div>
                    <!-- right -->
                    <div class="sum-3-right">
                        <!-- left -->
                        <div>
                            <span>昨日新增</span>
                            <span>2323</span>
                        </div>
                        <!-- RIGHT -->
                        <div>
                            <span>本月新增</span>
                            <span>23003</span>
                        </div>
                    </div>
                </div>
            </div>
            <!-- 计数 -->
            <div class="mian-count">
                <div v-for="(item, index) in putin" :key="index" class="count-item">
                    <span>{{ item.sum }}</span>
                    <span>{{ item.text }}</span>
                </div>
            </div>
            <!-- 表格 -->
            <div class="table-box">
                <span class="table-tip">提醒</span>
                <Table :tableList="tableList"></Table>

                <Table :tableList="tableList1"></Table>
            </div>

        </div>
        <!-- right -->
        <div class="mian-right">
            <!-- right-top -->
            <div class="right-top"></div>
            <!-- right-mid -->
            <div class="right-mid"></div>
            <!-- right-bom -->
            <div class="right-bom"></div>
        </div>
    </div>
</template>
<script>
import Table from '../components/table.vue'
export default {
    components: {
        Table
    },
    name: '',
    data() {
        return {
            putin: [
                {
                    id: 0,
                    sum: '8987',
                    text: '投放中'
                }, {
                    id: 1,
                    sum: '3245',
                    text: '楼盘覆盖'
                }, {
                    id: 2,
                    sum: '2342',
                    text: '闲置资源'
                }, {
                    id: 3,
                    sum: '50%',
                    text: '空置率'
                }
            ],
            tableList: [{
                title: '一号公馆',
                time: '2022-01-18',
                name: '保利·一号公馆',
                address: '上海市普陀区金沙江路 1518 弄'
            }, {
                title: '长风画卷',
                time: '2022-04-28',
                name: '恒大华府',
                address: '上海市普陀区金沙江路 1518 弄'
            }],

            tableList1: [{
                title: '一号公馆',
                time: '2022-01-18',
                name: '保利·一号公馆',
                address: '上海市普陀区金沙江路 1518 弄'
            }, {
                title: '一号公馆',
                time: '2022-01-18',
                name: '保利·一号公馆',
                address: '上海市普陀区金沙江路 1518 弄'
            }, {
                title: '一号公馆',
                time: '2022-01-18',
                name: '保利·一号公馆',
                address: '上海市普陀区金沙江路 1518 弄'
            }, {
                title: '一号公馆',
                time: '2022-01-18',
                name: '保利·一号公馆',
                address: '上海市普陀区金沙江路 1518 弄'
            }, {
                title: '一号公馆',
                time: '2022-01-18',
                name: '保利·一号公馆',
                address: '上海市普陀区金沙江路 1518 弄'
            }, {
                title: '一号公馆',
                time: '2022-01-18',
                name: '保利·一号公馆',
                address: '上海市普陀区金沙江路 1518 弄'
            }, {
                title: '一号公馆',
                time: '2022-01-18',
                name: '保利·一号公馆',
                address: '上海市普陀区金沙江路 1518 弄'
            }, {
                title: '一号公馆',
                time: '2022-01-18',
                name: '保利·一号公馆',
                address: '上海市普陀区金沙江路 1518 弄'
            }],


        };
    },
    methods: {

    },
    mounted() {

    }
};
</script>
<style scoped>
.mian {
    height: 100%;
    width: 100%;
    display: flex;
}

.mian-left {
    width: 975px;
}

.mian-right {
    margin-left: 25px;
    flex: 1;
}

.sum-flex {
    border-radius: 12px;

    display: flex;
    align-items: center;
    padding-left: 25px;
    box-sizing: border-box;
}

.mian-let-sum {
    display: flex;
    align-items: center;
}

.sum-1 {
    width: 250px;
    height: 135px;
    background: #517BFF;
}

.sum-2 {
    margin: 0 25px;
    width: 250px;
    height: 135px;
    background: #FFA100;
}

.sum-3 {
    flex: 1;
    height: 135px;
    background: #FF7A3C;

    border-radius: 12px;
    overflow: hidden;

    display: flex;
    /* align-items: center; */
}

.sum-3-left {
    flex: 1;
    height: 100%;
    background: rgba(255, 130, 71, 1);
}

.sum-3-right {
    flex: 1;
    height: 100%;
    background: rgba(255, 122, 60, 1);

    display: flex;
    align-items: center;
}

.sum-3-right div {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-items: center;
    align-items: center;
}

.sum-3-right div span:nth-child(1) {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0px;
    line-height: 29.33px;
    color: rgba(255, 255, 255, 0.6);
}

.sum-3-right div span:nth-child(2) {
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 0px;
    line-height: 29.33px;
    color: rgba(255, 255, 255, 1);

}

.mian-count {
    height: 135px;
    background: #fff;
    border-radius: 12px;
    margin: 25px 0;
}

.table-box {
    /* height: 630px; */
    background: #fff;
    border-radius: 12px;
    margin-bottom: 25px;
    padding: 25px;
    box-sizing: border-box;
}

.right-top {
    height: 295px;
    background: #fff;
    border-radius: 12px;
}

.right-mid {
    margin-top: 25px;
    height: 230px;
    background: #fff;
    border-radius: 12px;
}

.right-bom {
    height: 375px;
    margin-top: 25px;
    background: #fff;
    border-radius: 12px;
}

.left-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-right: 15px;
}

.el-icon-s-cooperation {
    font-size: 30px;
    color: rgba(81, 123, 255, 1);
}

.el-icon-platform-eleme {
    font-size: 30px;
    color: rgba(255, 161, 0, 1);
}


.sum-right div:nth-child(1) {
    font-size: 18px;
    font-weight: 400;
    line-height: 29.33px;
    color: rgba(255, 255, 255, 1);
}

.sum-right div:nth-child(2) {
    font-size: 32px;
    font-weight: 500;
    line-height: 37.5px;
    color: rgba(255, 255, 255, 1);
}

.mian-count {
    display: flex;
    align-items: center;
    justify-content: center;
}

.count-item {
    display: flex;
    flex-direction: column;
    align-items: center;

    flex: 1;
    position: relative;
}

.count-item::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    width: 2px;
    height: 55px;
    background: #979797;
    opacity: 0.1;
}

.count-item:nth-child(1)::after {
    width: 0;
    height: 0;
}

.count-item span:nth-child(1) {
    font-size: 32px;
    font-weight: 500;
    line-height: 37.5px;
    color: rgba(0, 0, 0, 1);
}

.count-item span:nth-child(2) {
    font-size: 18px;
    font-weight: 500;
    line-height: 37.5px;
    color: rgba(0, 0, 0, 0.6);
}

.table-tip {
    font-size: 22px;
    font-weight: 500;
    line-height: 31.86px;
    color: rgba(0, 0, 0, 1);
}
</style>
